package com.sdy.dao.mysql;

import com.sdy.po.Notic;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NoticMapper {


    @Insert("insert into po_notic(companyId,title,info,data,noticState,readState,Time,parmId) " +
            "values(#{notic.companyId},#{notic.title},#{notic.info},#{notic.data},#{notic.noticState},#{notic.readState},#{notic.Time},#{notic.parmId})")
    public Boolean insertNotic(@Param("notic") Notic notic);


    public Notic getOneById(Integer noticId);

    public List<Notic> getListByCompanyId(Integer companyId);

}
